{% extends "events/base.html" %}
{% load i18n %

{% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% load adminmedia %}{% admin_media_prefix %}css/dashboard.css" />{% endblock %}

{% block coltype %}colMS{% endblock %}

{% block bodyclass %}dashboard{% endblock %}

{% block breadcrumbs %}
	{% if not is_popup %}
		<div class="breadcrumbs">
		     <a href="../../">Home</a> &rsaquo;
		     <a href="../">Event Manager</a> &rsaquo;
		     Add Event &rsaquo;
		     Event Type Select
		</div>
	{% endif %}
{% endblock %}

{% block content %}
<form action="" method="POST">
	{% csrf_token %}
	<table>
		{% for type in event_types %}
			<tr>
				<td><input type="radio" name="event_type" id="choice{{forloop.counter}}" value="{{type.model_contenttype_name}}" /></td>
				<td>{{type.long_name}}</td>
				<td>{{type.description}}</td>
				<td>{%if type.url %}<a href='{{type.url}}'>Details</a>{% else %}&nbsp;{% endif %}</td>
			</tr>
		{% endfor %}
	</table>
	 <div class="submit-row">
 			<input type="submit" value="Select" class="default" name="_save" {{ onclick_attrib }}/>
 			<label>&nbsp;</label><input type="button" value="Cancel" ONCLICK="window.location.href='{% url ocms.eventmanager.views.index %}'"/>
	</div>
</form>
{% endblock %}
